package com.dj.mingkong.admin.biz.repository.database.music;

import com.dj.mingkong.common.infrastructure.base.dto.query.QueryVo;
import com.dj.mingkong.common.infrastructure.base.repository.BaseDatabaseRepository;
import com.dj.mingkong.common.infrastructure.eo.database.music.MusicianReviewEo;
import com.dj.mingkong.admin.biz.repository.database.music.mapper.MusicianReviewMapper;
import org.springframework.stereotype.Repository;


/**
 * 音乐人审核repository
 *
 * @author zenglonghui
 * @date: 2022/10/30 12:33
 */
@Repository
public class MusicianReviewRepository extends BaseDatabaseRepository<MusicianReviewMapper, MusicianReviewEo, QueryVo> {
    public boolean deleteByMusicianId(Long musicianId) {
        return lambdaUpdate().eq(MusicianReviewEo::getMusicianId, musicianId).remove();
    }
}
